//
//  ZfbbkViewController.m
//  Ten
//
//  Created by anfuer on 2018/8/18.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "ZfbbkViewController.h"

@interface ZfbbkViewController ()
@property (weak, nonatomic) IBOutlet UITextField *tsf1;
@property (weak, nonatomic) IBOutlet UITextField *tsf2;
@property (weak, nonatomic) IBOutlet UILabel *titleLB;
@property (weak, nonatomic) IBOutlet UILabel *lb1;
@property (weak, nonatomic) IBOutlet UILabel *lb2;

@end

@implementation ZfbbkViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([_type isEqualToString:@"wx"]) {
        _titleLB.text=@"绑定微信账号";
        _lb1.text=@"微信账号";
        _lb2.text=@"微信昵称";
        _tsf1.placeholder=@"请输入微信账号";
       _tsf2.placeholder=@"请输入微信昵称方便核对";
    }
    
//
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)btna:(UIButton *)sender {
    if ([FuncPublic TextFieldisError:_tsf1]||[FuncPublic TextFieldisError:_tsf2]) {
        [FuncPublic getData:self parameters:@{@"account":_tsf1.text,@"name":_tsf2.text} RequestUrl:[_type isEqualToString:@"wx"]?Cbind_wx:Cbind_alipay success:^(NSDictionary *acountInfo) {
             [WSProgressHUD showImage:nil status:acountInfo[@"msg"]];
         
        }];

    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
